import request from '@/router/axios';

// 页面数据展示
export const getAccountInfo = () => {
    return request({
        url: '/api/rb-core/core/oemWithdrawal/oem_withdrawal/accountInfo',
        method: 'get'
    })
}

// 查询提现数据
export const queryBalanceAmount = (amount) => {
    return request({
        url: '/api/rb-core/core/oemWithdrawal/oem_withdrawal/queryBalanceAmount',
        method: 'get',
        params: {
            amount
        }
    })
}

// 提现
export const postWithdraw = (amount) => {
    return request({
        url: '/api/rb-core/core/oemWithdrawal/oem_withdrawal/withdraw',
        method: 'post',
        params: {
            amount
        }
    })
}
// 分页
export const getList = (current, size, params) => {
    return request({
        url: '/api/rb-core/core/oemWithdrawal/oem_withdrawal/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

// 流---详情
export const getDetail = (withdrawCode) => {
    return request({
        url: '/api/rb-core/core/oemWithdrawal/oem_withdrawal/detail',
        method: 'get',
        params: {
            withdrawCode
        }
    })
}